package util;

public class Constants {
    public static final int FIRST_POS_INDEX_FILE = 0;
    public static final String BLANK_STRING = "";
    /* properties */
    public static String JDBC_DRIVER = "jdbcDriver";
    public static String JDBC_URL = "jdbcUrl";
    public static String JDBC_USER = "jdbcUser";
    public static String JDBC_PASSWORD = "jdbcPassword";
    /* actions */
    // users
    public static final String ACTION_ON_STATUS_BUTTON = "onStatusButton";
    public static final String ACTION_TRANSLATE_WORD = "translateWord";
    public static final String ACTION_GO_TO_LOGIN_PAGE = "goToLoginPage";
    public static final String ACTION_CHECK_LOGIN_ACCOUNT = "checkLoginAccount";
    public static final String ACTION_SUGGEST_TRANSLATION = "suggestTranslation";
    public static final String ACTION_SUBMIT_TRANSLATION = "submitTranslation";
    public static final String ACTION_GO_TO_HOMEPAGE = "goToHomepage";
    public static final String ACTION_GO_TO_URL = "goToURL";
    public static final String ACTION_CHANGE_ACCOUNT = "changeAccount";
    public static final String ACTION_CHANGE_MODE = "changeMode";
    public static final String ACTION_CHANGE_WORD = "changeWord";
    // admin
    public static final String ACTION_GO_TO_CREATE_NEW_DICT_PAGE = "goToCreateNewDictPage";
    public static final String ACTION_CHANGE_ROLE_DICT = "changeRoleDict";
    public static final String ACTION_REMOVE_USER_DICT = "removeUserDict";
    public static final String ACTION_ADD_USER_DICT = "addUserDict";
    public static final String ACTION_ADD_USER = "adUser";
    public static final String ACTION_DEL_USER = "delUser";
    public static final String ACTION_DELET_DICT = "deleteDict";
    public static final String ACTION_CREATE_DICT = "createDict";
    public static final String ACTION_ADD_LANGUAGE = "addLanguage";
    public static final String ACTION_REMOVE_LANGUAGE = "removeLanguage";
    public static final String ACTION_ADD_DICT = "addDict";
    public static final String ACTION_LOGOUT = "logout";
    public static final String ACTION_GO_TO_DICT_LIST_PAGE_ADMIN = "goToDictListPageAdmin";
    public static final String ACTION_GO_TO_USER_LIST = "goToUserList";
    // dictionary manager
    public static final String ACTION_REORGANIZE = "reorganize";
    public static final String ACTION_CHECK_NEW_WORD = "checkNewWord";
    public static final String ACTION_CHECK_SUGGESTED_WORD = "checkSuggestedWord";
    public static final String ACTION_VIEW_MANAGER_DETAIL = "viewManagerDetail";
    public static final String ACTION_DEL_SUGGESTED_WORD = "delSuggestedWord";
    public static final String ACTION_EDIT_SUGGESTED_WORD = "editSuggestedWord";
    public static final String ACTION_SUMIT_EDITED_WORD = "subMitEditedWord";
    public static final String ACTION_REMOVE_WORD = "removeWordFromDict";
    public static final String ACTION_ADD_WORD = "addWordToDict";
    public static final String ACTION_GO_TO_ADD_WORD_PAGE = "goToAddWordPage";

    /* pages */
    // users
    public static final String HOME_PAGE_PORTLET_URL = "/WEB-INF/jsp/S01LookupWord.jsp";
    public static final String RESULT_PAGE_URL = HOME_PAGE_PORTLET_URL;
    public static final String LOGIN_PAGE_URL = "/WEB-INF/jsp/S03Login.jsp";
    public static final String ADD_SUGGEST_TRANSLATION_PAGE_URL = "/WEB-INF/jsp/S02WordContribution.jsp";
    public static final String CHANGE_ACCOUNT_PAGE_URL = "/WEB-INF/jsp/users/S19ChangeAccountPage.jsp";

    // administrator
    public static final String ADMIN_PAGE_URL = "/WEB-INF/jsp/admin/S04AdminPage.jsp";
    public static final String DICT_LIST_PAGE_URL = "/WEB-INF/jsp/admin/S06DictList.jsp";
    public static final String CREATE_NEW_DICT_PAGE_URL = "/WEB-INF/jsp/admin/S05CreateNewDict.jsp";
    public static final String ADMIN_USER_PAGE_URL = "/WEB-INF/jsp/admin/S07UserAdministrationPage.jsp";

    // dictionary managers
    public static final String DICT_MANAGEMENT_PAGE_URL = "/WEB-INF/jsp/dictManagers/S09DictManagement.jsp";
    public static final String MY_DICT_LIST_PAGE_URL = "/WEB-INF/jsp/dictManagers/DictListPage.jsp";
    public static final String MY_MANAGER_DETAIL_PAGE_URL = "/WEB-INF/jsp/dictManagers/S10ManagerDetailPage.jsp";
    public static final String MY_WORD_LIST_PAGE_URL = "/WEB-INF/jsp/dictManagers/S11WordList.jsp";
    public static final String MY_WORD_DETAIL_PAGE_URL = "/WEB-INF/jsp/dictManagers/S13WordDetailPage.jsp";
    public static final String MY_ADD_WORD_PAGE = "/WEB-INF/jsp/dictManagers/AddWordPage.jsp";
    // others
    public static final String LOGIN_CODE = "logintowebsite";
    public static final int ROLE_ADMIN = 1;
    public static final int ROLE_DICT_MANAGER = 2;
    public static final int ROLE_APPROVER = 1;
    public static final String PORTLET_NAMESPACE = "OnlineStardict_StardictPortlet_OnlineStardict_StardictPortlet";
}
